////////////////////////////////////////////////////////////////////////
//                                                                    //
//   GGGGGGGG  EEEEEEEE  RRRRRRRR   MM     MM       A       NN    NN  //
//  GG         E         RR     RR  MMM   MMM      A A      NNN   NN  //
//  GG         EEEEEE    RR     RR  MM M M MM     A   A     NNNN  NN  //
//  GG    GGG  E         RRRRRRRR   MM  M  MM    AAAAAAA    NN NN NN  //
//  GG     GG  E         RR    RR   MM     MM   A       A   NN  NNNN  //
//   GGGGGGGG  EEEEEEEE  RR     RR  MM     MM  A         A  NN   NNN  //
//                                                                    //
//   CCCCC    OOOOO   DDDDDD    EEEEEEEE                              //
//  CC   CC  O     O  DD   DD   E                                     //
//  CC       O     O  DD    DD  EEEEEE                                //
//  CC       O     O  DD    DD  E                                     //
//  CC   CC  O     O  DD   DD   E                                     //
//   CCCCC    OOOOO   DDDDDD    EEEEEEEE                              //
//                                                                    //
////////////////////////////////////////////////////////////////////////

package gameCopiler;
import java.io.File;
import java.util.Scanner;

class read{
   private Scanner f; /// reader file
   String NextLine()     {///gives the next line of the file
       return f.nextLine();
   }
   String Next()         {///gives the next word of the file
       return f.next();
   }
   boolean HasNext()     {///return true if still has more lines
       try {
           return f.hasNext();
       } catch(Exception e) {///if checks fails
            System.out.println("File doesn't exists");
            return false;
       }
   }
   void Open(String str) {///open the file
      try {
         f = new Scanner(new File(str));
      } catch(Exception e) {
         System.out.println("File doesn't exists");
      }

   }
   void Close()          {////close the file
       f.close();
   }
}